package com.example.administrator.uiautomator.pages;

import android.support.test.uiautomator.UiObject2;

import com.example.administrator.uiautomator.utils.Finder;

/**
 * Created by Administrator on 2017/7/5.
 */

public class PageMy {

    private Finder finder;

    public PageMy(Finder finder){
        this.finder = finder;
    }

    public UiObject2 getLoginBtn(){
        return finder.findById("com.netease.newsreader.activity:id/a6c");
    }

    public void clickLoginBtn(){
        getLoginBtn().click();
    }

}
